import Container from "@/container";

const userRouter = {
  path: "/userManage",
  component: Container,
  redirect: "noRedirect",
  name: "userManage",
  meta: {
    permitIds: ["manag"],
    title: "组织管理",
    icon: "tb_08.png"
  },
  children: [
    {
      path: "/innerUserManage",
      name: "innerUserManage",
      meta: {
        parentTitle: "组织管理",
        title: "员工档案管理",
        index: "8-1",
        permitIds: ["manag_staff"]
      },
      component: () => import("@/pages/user/inner_user_manage")
    },
    {
      path: "/addUser",
      name: "addUser",
      meta: {
        parentTitle: "组织管理",
        title: "新增员工",
        permitIds: ["manag_staff_add"]
      },
      component: () => import("@/pages/user/inner_user_manage/add_user")
    },
    {
      path: "/detailUser",
      name: "detailUser",
      meta: {
        parentTitle: "组织管理",
        title: "员工详情",
        permitIds: ["manag_staff_load"]
      },
      component: () => import("@/pages/user/inner_user_manage/detail_user")
    },
    {
      path: "/editUser",
      name: "editUser",
      meta: {
        parentTitle: "组织管理",
        title: "编辑员工",
        permitIds: ["manag_staff_update"]
      },
      component: () => import("@/pages/user/inner_user_manage/edit_user")
    },
    {
      path: "/roleManage",
      name: "roleManage",
      meta: {
        parentTitle: "组织管理",
        title: "组织架构管理",
        index: "8-2",
        permitIds: ["manag_org"]
      },
      component: () => import("@/pages/user/role_manage")
    }
  ]
};

export default userRouter;
